package com.huopaolan.yohuoshop.Adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.ShowEntity;
import com.huopaolan.yohuoshop.NetWork.API;
import com.huopaolan.yohuoshop.R;

public class MyHeadAdapter extends BaseQuickAdapter<ShowEntity.Values, BaseViewHolder> {
    public MyHeadAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShowEntity.Values item) {
        ImageView helperView = helper.getView(R.id.my_shop_image);
        Glide.with(helper.itemView.getContext()).load(API.BaseUrl + item.goods_img_path).into(helperView);
        helper.setText(R.id.my_shop_name, item.goods_name);
    }
}
